package cn.oscar.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import commonUtils.entities.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    @Select("select user_name ,user_photo ,context ,create_time from comment where blog_id = #{blogid} ")
    List<Comment> selectCommentByBlogId(Long blogid);

}
